"""
在这里写配置文件
"""
SECRET_KEY = "asdfghjkl;'/.,mnbvcxzqwertyuiop[]"

# 配置数据库
HOSTNAME = '127.0.0.1'          # 数据库地址
PORT = '3306'                   # 端口默认3306
DATABASE = 'confession_wall'    # 数据库名称
USERNAME = 'root'               # 数据账户名称, 默认root
PASSWORD = ''      # 数据库密码
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI


# 配置邮箱
MAIL_SERVER = "smtp.qq.com"                 # 邮箱服务器地址(网易:smtp.163.com)
MAIL_USE_SSL = True                         # 是否开启加密
MAIL_PORT = 465                             # 端口默认465
MAIL_USERNAME = ""        # QQ邮箱账号
MAIL_PASSWORD = ""  # 授权密码
MAIL_DEFAULT_SENDER = ""  # QQ邮箱账号
